:root {
  --ink: #14221f;
  --muted: #5c6b66;
  --paper: #f7faf7;
  --surface: #ffffff;
  --line: rgba(20, 34, 31, 0.12);
  --accent: #0c7c66;
  --accent-2: #2b65d9;
  --gold: #d89c22;
  --shadow: 0 24px 80px rgba(12, 35, 30, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Noto Sans TC", "Microsoft JhengHei", sans-serif;
  line-height: 1.65;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px clamp(18px, 5vw, 64px);
  color: #fff;
  transition: background 180ms ease, box-shadow 180ms ease, color 180ms ease;
}

.site-header.is-scrolled {
  color: var(--ink);
  background: rgba(247, 250, 247, 0.9);
  box-shadow: 0 1px 0 var(--line);
  backdrop-filter: blur(18px);
}

.brand {
  font-weight: 900;
  letter-spacing: 0;
  font-size: 1rem;
}

nav {
  display: flex;
  gap: clamp(14px, 3vw, 34px);
  font-size: 0.92rem;
  font-weight: 700;
}

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: center;
  overflow: hidden;
  background: #0d211f;
}

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.03);
  animation: heroDrift 14s ease-in-out infinite alternate;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 18, 18, 0.88), rgba(5, 18, 18, 0.54) 44%, rgba(5, 18, 18, 0.12)),
    linear-gradient(0deg, rgba(5, 18, 18, 0.3), transparent 38%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 780px;
  padding: 116px clamp(22px, 6vw, 76px) 56px;
  color: #fff;
}

.eyebrow,
.section-kicker {
  margin: 0 0 18px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #8cebd6;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 720px;
  margin-bottom: 22px;
  font-size: clamp(2.7rem, 7vw, 6.6rem);
  line-height: 0.98;
  font-weight: 900;
  letter-spacing: 0;
}

h2 {
  max-width: 880px;
  margin-bottom: 18px;
  font-size: clamp(2rem, 4.2vw, 4.1rem);
  line-height: 1.08;
  font-weight: 900;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.24rem;
  line-height: 1.32;
}

.hero-copy {
  max-width: 620px;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1rem, 2vw, 1.22rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 160ms ease, background 160ms ease, color 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button.primary {
  color: #06201a;
  background: #8cebd6;
}

.button.secondary {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.36);
}

.band,
.timeline-section,
.myths,
.paths-section,
.comparison,
.decision,
.source-note {
  padding: clamp(64px, 9vw, 132px) clamp(20px, 6vw, 78px);
}

.intro {
  background: #fff;
}

.intro p {
  max-width: 900px;
  color: var(--muted);
  font-size: clamp(1.06rem, 2vw, 1.35rem);
}

.timeline-section {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(320px, 1.15fr);
  gap: clamp(32px, 6vw, 84px);
}

.timeline {
  border-left: 2px solid rgba(12, 124, 102, 0.26);
}

.timeline article {
  position: relative;
  padding: 0 0 46px 34px;
}

.timeline article:last-child {
  padding-bottom: 0;
}

.timeline article::before {
  content: "";
  position: absolute;
  top: 4px;
  left: -9px;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 8px rgba(12, 124, 102, 0.12);
}

time {
  display: block;
  margin-bottom: 8px;
  color: var(--accent-2);
  font-weight: 900;
}

.timeline p,
.myth-grid p,
.path-list p,
.decision-list p,
.source-note p {
  color: var(--muted);
}

.myths {
  background: #10221f;
  color: #fff;
}

.myths .section-kicker,
.myths p {
  color: rgba(255, 255, 255, 0.74);
}

.myth-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin-top: 42px;
  background: rgba(255, 255, 255, 0.18);
}

.myth-grid article {
  min-height: 260px;
  padding: clamp(26px, 4vw, 46px);
  background: #10221f;
}

.myth-grid span {
  display: block;
  margin-bottom: 40px;
  color: #8cebd6;
  font-weight: 900;
}

.paths-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
  gap: clamp(38px, 7vw, 96px);
  align-items: center;
  background: #eef5f1;
}

.paths-heading {
  grid-column: 1 / -1;
}

.path-map {
  position: relative;
  min-height: 440px;
}

.node {
  position: absolute;
  display: grid;
  place-items: center;
  width: 148px;
  height: 148px;
  border-radius: 50%;
  color: #fff;
  font-size: 1.08rem;
  font-weight: 900;
  box-shadow: var(--shadow);
}

.source {
  top: 0;
  left: 0;
  background: #1c3430;
}

.gcp {
  top: 145px;
  left: 42%;
  background: var(--accent-2);
}

.personal {
  top: 145px;
  right: 0;
  background: var(--accent);
}

.result {
  bottom: 0;
  left: 28%;
  width: 190px;
  height: 190px;
  background: #0c1d1a;
}

.connector {
  position: absolute;
  inset: 96px 80px auto 90px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  opacity: 0.65;
}

.connector.split {
  inset: auto 150px 116px 130px;
}

.path-list {
  display: grid;
  gap: 20px;
}

.path-list article {
  padding: 30px 0;
  border-top: 1px solid var(--line);
}

.path-list article:last-child {
  border-bottom: 1px solid var(--line);
}

.path-label {
  display: inline-flex;
  margin-bottom: 16px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 900;
}

.gcp-label {
  color: #13438f;
  background: rgba(43, 101, 217, 0.12);
}

.personal-label {
  color: #0c6f5b;
  background: rgba(12, 124, 102, 0.13);
}

.comparison {
  background: #fff;
}

.comparison-table {
  margin-top: 38px;
  border-top: 1px solid var(--line);
}

.row {
  display: grid;
  grid-template-columns: 0.75fr 1.4fr 1fr;
  gap: 28px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.row.header {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
}

.row:not(.header) div:first-child {
  color: var(--accent);
  font-weight: 900;
}

.decision {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(300px, 1.1fr);
  gap: clamp(34px, 6vw, 80px);
}

.decision-list article {
  padding: 26px 0;
  border-top: 1px solid var(--line);
}

.decision-list article:last-child {
  border-bottom: 1px solid var(--line);
}

.source-note {
  padding-top: 42px;
  padding-bottom: 42px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.source-note p {
  max-width: 980px;
  margin-bottom: 0;
  font-size: 0.92rem;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 680ms ease, transform 680ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes heroDrift {
  from {
    transform: scale(1.03) translateX(0);
  }
  to {
    transform: scale(1.08) translateX(1.4%);
  }
}

@media (max-width: 860px) {
  .site-header {
    position: absolute;
    align-items: flex-start;
  }

  nav {
    display: none;
  }

  .hero {
    min-height: 92svh;
  }

  .hero-content {
    padding-top: 106px;
  }

  .timeline-section,
  .paths-section,
  .decision {
    grid-template-columns: 1fr;
  }

  .myth-grid {
    grid-template-columns: 1fr;
  }

  .path-map {
    min-height: 360px;
  }

  .node {
    width: 112px;
    height: 112px;
    font-size: 0.95rem;
  }

  .source {
    left: 2%;
  }

  .gcp {
    top: 128px;
    left: 8%;
  }

  .personal {
    top: 128px;
    right: 8%;
  }

  .result {
    left: 50%;
    transform: translateX(-50%);
    width: 136px;
    height: 136px;
  }

  .connector,
  .connector.split {
    display: none;
  }

  .row,
  .row.header {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .row.header {
    display: none;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    transition-duration: 1ms !important;
  }
}
