:root {
  --ink: #102421;
  --ink-soft: #3c5650;
  --paper: #f7f4ea;
  --paper-deep: #ece4d0;
  --mist: #dce8e3;
  --atlas: #0f6158;
  --atlas-dark: #093d39;
  --amber: #d79a38;
  --rust: #a55538;
  --line: rgba(16, 36, 33, 0.16);
  --shadow: 0 24px 70px rgba(12, 32, 29, 0.14);
  --display: "Yu Mincho", "Noto Serif TC", "PMingLiU", serif;
  --body: "Microsoft JhengHei", "PingFang TC", "Noto Sans TC", sans-serif;
  --mono: "Cascadia Code", "Lucida Console", monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(16, 36, 33, 0.05) 1px, transparent 1px),
    linear-gradient(0deg, rgba(16, 36, 33, 0.04) 1px, transparent 1px),
    radial-gradient(circle at 8% 0%, rgba(215, 154, 56, 0.22), transparent 34rem),
    radial-gradient(circle at 92% 18%, rgba(15, 97, 88, 0.18), transparent 34rem),
    var(--paper);
  background-size: 42px 42px, 42px 42px, auto, auto, auto;
  font-family: var(--body);
  line-height: 1.75;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 56px);
  background: rgba(247, 244, 234, 0.82);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: #fffaf0;
  background: var(--atlas);
  border-radius: 6px;
  font-family: var(--display);
}

.top-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.top-nav a {
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.top-nav a:hover,
.top-nav a:focus-visible {
  color: var(--atlas-dark);
  border-color: var(--amber);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.16fr) minmax(320px, 0.84fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  min-height: 82vh;
  padding: clamp(56px, 9vw, 118px) clamp(18px, 5vw, 72px);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--rust);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--display);
  line-height: 1.12;
}

h1 {
  max-width: 930px;
  font-size: clamp(3rem, 8vw, 7.4rem);
  letter-spacing: 0;
}

h2 {
  font-size: clamp(2rem, 4vw, 4.2rem);
}

h3 {
  font-size: clamp(1.25rem, 2vw, 1.65rem);
}

.hero-description {
  max-width: 760px;
  margin: 28px 0 0;
  color: var(--ink-soft);
  font-size: clamp(1.05rem, 1.8vw, 1.28rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 10px 18px;
  border: 1px solid var(--atlas);
  border-radius: 7px;
  text-decoration: none;
  font-weight: 800;
}

.button.primary {
  color: #fffaf0;
  background: var(--atlas);
}

.button.secondary {
  color: var(--atlas-dark);
  background: rgba(255, 255, 255, 0.42);
}

.hero-panel {
  position: relative;
  padding: 28px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.72), rgba(236, 228, 208, 0.72)),
    var(--paper-deep);
  border: 1px solid rgba(16, 36, 33, 0.18);
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.hero-panel::before {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px dashed rgba(16, 36, 33, 0.2);
  pointer-events: none;
}

.panel-line {
  position: relative;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.panel-line span {
  color: var(--ink-soft);
}

.panel-note {
  position: relative;
  margin-top: 24px;
  padding: 18px;
  color: var(--paper);
  background: var(--atlas-dark);
  border-radius: 8px;
}

.section {
  padding: clamp(54px, 8vw, 92px) clamp(18px, 5vw, 72px);
}

.section-heading {
  max-width: 860px;
  margin-bottom: 30px;
}

.section-heading p:not(.eyebrow) {
  color: var(--ink-soft);
}

.key-grid,
.method-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.key-card,
.method-card,
.concept-card,
.faq-list details {
  background: rgba(255, 255, 255, 0.54);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 12px 34px rgba(12, 32, 29, 0.08);
}

.key-card {
  min-height: 220px;
  padding: 22px;
}

.key-card span {
  display: inline-flex;
  margin-bottom: 28px;
  color: var(--amber);
  font-family: var(--mono);
  font-weight: 800;
}

.split {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1.28fr);
  gap: 44px;
}

.sticky-heading {
  position: sticky;
  top: 92px;
  align-self: start;
}

.concept-stack {
  display: grid;
  gap: 18px;
}

.concept-card {
  padding: 28px;
}

.concept-card ul,
.method-card ul,
.timeline ul {
  padding-left: 1.2rem;
}

.comparison-grid {
  display: grid;
  gap: 10px;
  margin-top: 20px;
}

.comparison-row {
  display: grid;
  grid-template-columns: 0.8fr 1fr 1fr;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(247, 244, 234, 0.72);
}

.mothership-section {
  background:
    linear-gradient(135deg, rgba(9, 61, 57, 0.96), rgba(16, 36, 33, 0.94)),
    var(--atlas-dark);
  color: var(--paper);
}

.mothership-section .eyebrow,
.mothership-section .section-heading p {
  color: #f1c979;
}

.mothership-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: 24px;
  align-items: stretch;
}

.mothership-brief,
.benefit-card,
.role-card {
  border: 1px solid rgba(247, 244, 234, 0.18);
  border-radius: 12px;
  background: rgba(247, 244, 234, 0.08);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.18);
}

.mothership-brief {
  padding: 28px;
}

.brief-label {
  display: inline-flex;
  margin-bottom: 16px;
  padding: 6px 10px;
  color: var(--atlas-dark);
  background: #f1c979;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 900;
}

.mothership-brief p {
  font-size: 1.18rem;
}

.mothership-brief blockquote {
  margin: 24px 0 0;
  padding: 20px;
  color: #fff8dd;
  border-left: 5px solid #f1c979;
  background: rgba(0, 0, 0, 0.18);
}

.mothership-flow {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.mothership-flow-step {
  position: relative;
  min-height: 180px;
  padding: 18px;
  border: 1px solid rgba(247, 244, 234, 0.18);
  border-radius: 12px;
  background: rgba(247, 244, 234, 0.1);
}

.mothership-flow-step strong {
  display: block;
  color: #f1c979;
  font-family: var(--mono);
  margin-bottom: 22px;
}

.mothership-flow-step::after {
  content: "↓";
  position: absolute;
  right: 16px;
  bottom: 10px;
  color: #f1c979;
  font-size: 1.4rem;
}

.mothership-flow-step:last-child::after {
  content: "";
}

.mothership-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.9fr);
  gap: 24px;
  margin-top: 24px;
}

.benefit-card {
  padding: 26px;
}

.benefit-table {
  display: grid;
  gap: 10px;
  margin-top: 20px;
}

.benefit-row {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 14px;
  padding: 12px;
  border-radius: 8px;
  background: rgba(247, 244, 234, 0.1);
}

.benefit-row strong {
  color: #f1c979;
}

.role-map {
  display: grid;
  gap: 12px;
}

.role-card {
  padding: 18px;
}

.role-card h3 {
  font-family: var(--body);
  font-size: 1.1rem;
}

.role-card .metaphor {
  display: block;
  color: #f1c979;
  font-weight: 900;
  margin: 6px 0;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.58);
  box-shadow: var(--shadow);
}

table {
  width: 100%;
  min-width: 850px;
  border-collapse: collapse;
}

th,
td {
  padding: 16px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}

th {
  color: var(--paper);
  background: var(--atlas-dark);
  font-size: 0.88rem;
}

td {
  color: var(--ink-soft);
}

.method-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.method-card {
  padding: 26px;
}

.method-card .tag {
  display: inline-flex;
  margin: 16px 0;
  padding: 5px 9px;
  color: var(--atlas-dark);
  background: var(--mist);
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 800;
}

.timeline {
  display: grid;
  gap: 16px;
  padding: 0;
  list-style: none;
}

.timeline li {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 22px;
  padding: 22px;
  background: rgba(255, 255, 255, 0.56);
  border: 1px solid var(--line);
  border-radius: 10px;
}

.phase {
  color: var(--rust);
  font-family: var(--mono);
  font-weight: 900;
}

.code-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

pre {
  overflow-x: auto;
  min-height: 280px;
  padding: 24px;
  color: #edf7ef;
  background: #102421;
  border-radius: 12px;
  box-shadow: var(--shadow);
}

code {
  font-family: var(--mono);
  font-size: 0.92rem;
}

.workflow {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.workflow-step {
  position: relative;
  min-height: 144px;
  padding: 20px;
  color: var(--paper);
  background: var(--atlas-dark);
  border-radius: 10px;
}

.workflow-step::after {
  content: "→";
  position: absolute;
  top: 20px;
  right: 16px;
  color: var(--amber);
  font-size: 1.5rem;
}

.workflow-step:last-child::after {
  content: "";
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-list details {
  padding: 18px 22px;
}

.faq-list summary {
  cursor: pointer;
  font-weight: 900;
}

.faq-list p {
  color: var(--ink-soft);
}

.source-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 0;
  list-style: none;
}

.source-list a {
  display: block;
  padding: 16px;
  color: var(--atlas-dark);
  background: rgba(255, 255, 255, 0.56);
  border: 1px solid var(--line);
  border-radius: 8px;
  text-decoration: none;
  font-weight: 800;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 28px clamp(18px, 5vw, 72px);
  color: var(--paper);
  background: var(--atlas-dark);
}

@media (max-width: 1080px) {
  .hero,
  .split,
  .code-section,
  .focus-route-shell {
    grid-template-columns: 1fr;
  }

  .key-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .method-grid,
  .workflow,
  .source-list,
  .focus-route-map,
  .mothership-layout,
  .mothership-grid,
  .mothership-flow {
    grid-template-columns: 1fr;
  }

  .sticky-heading {
    position: static;
  }
}

@media (max-width: 680px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero {
    min-height: auto;
  }

  h1 {
    font-size: clamp(2.6rem, 14vw, 4.2rem);
  }

  .key-grid,
  .comparison-row,
  .benefit-row,
  .timeline li {
    grid-template-columns: 1fr;
  }

  .site-footer {
    flex-direction: column;
  }
}


.focus-route-section {
  position: relative;
  padding-top: clamp(38px, 6vw, 76px);
  background:
    linear-gradient(135deg, rgba(255, 250, 239, 0.78), rgba(220, 232, 227, 0.48)),
    radial-gradient(circle at 12% 20%, rgba(215, 154, 56, 0.2), transparent 22rem);
  border-block: 1px solid var(--line);
}

.focus-heading {
  max-width: 980px;
}

.focus-route-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: clamp(18px, 3vw, 34px);
  align-items: stretch;
}

.focus-route-map {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  counter-reset: focus-step;
}

.focus-step {
  position: relative;
  display: grid;
  align-content: start;
  min-height: 250px;
  padding: 22px;
  overflow: hidden;
  color: var(--ink);
  text-decoration: none;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(247, 244, 234, 0.72));
  border: 1px solid rgba(16, 36, 33, 0.18);
  border-radius: 16px;
  box-shadow: 0 18px 46px rgba(12, 32, 29, 0.1);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.focus-step::after {
  content: "";
  position: absolute;
  inset: auto 18px 18px 18px;
  height: 5px;
  background: linear-gradient(90deg, var(--atlas), var(--amber));
  border-radius: 999px;
}

.focus-step:hover,
.focus-step:focus-visible {
  transform: translateY(-4px);
  border-color: rgba(15, 97, 88, 0.46);
  box-shadow: 0 24px 64px rgba(12, 32, 29, 0.16);
  outline: none;
}

.focus-step-index {
  display: inline-flex;
  width: max-content;
  margin-bottom: 22px;
  padding: 5px 10px;
  color: #fffaf0;
  background: var(--atlas-dark);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.focus-step-label {
  color: var(--rust);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.focus-step h3 {
  margin-top: 8px;
  font-size: clamp(1.18rem, 1.8vw, 1.45rem);
}

.focus-step p {
  margin: 14px 0 24px;
  color: var(--ink-soft);
}

.focus-route-note {
  display: grid;
  align-content: center;
  padding: clamp(24px, 4vw, 38px);
  color: var(--paper);
  background:
    linear-gradient(145deg, rgba(9, 61, 57, 0.96), rgba(16, 36, 33, 0.94));
  border: 1px solid rgba(241, 201, 121, 0.28);
  border-radius: 20px;
  box-shadow: var(--shadow);
}

.note-kicker {
  width: max-content;
  margin-bottom: 14px;
  padding: 5px 10px;
  color: var(--atlas-dark);
  background: #f1c979;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.focus-route-note p {
  color: rgba(247, 244, 234, 0.82);
}

.text-link {
  width: max-content;
  margin-top: 12px;
  color: #f1c979;
  font-weight: 900;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}
