:root {
  --bg: #f6f7f2;
  --paper: #ffffff;
  --ink: #17202a;
  --muted: #62707f;
  --line: #dce3df;
  --green: #0f766e;
  --blue: #2458b8;
  --amber: #b45309;
  --red: #b42318;
  --violet: #6653a6;
  --soft-green: #e2f1ec;
  --soft-blue: #e7efff;
  --soft-amber: #fff1d8;
  --soft-red: #ffe7e1;
  --shadow: 0 18px 46px rgba(31, 44, 58, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

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

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

.hero {
  min-height: 520px;
  padding: 18px clamp(20px, 5vw, 70px) 56px;
  background:
    linear-gradient(120deg, rgba(15, 118, 110, 0.14), transparent 38%),
    linear-gradient(180deg, #ffffff 0%, #eef4ef 100%);
  border-bottom: 1px solid var(--line);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 4;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 10px 0;
  backdrop-filter: blur(12px);
}

.topbar a {
  padding: 8px 12px;
  border: 1px solid rgba(15, 118, 110, 0.22);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.72);
  color: #25413e;
  font-size: 14px;
  font-weight: 750;
  white-space: nowrap;
}

.hero-inner {
  max-width: 1080px;
  margin-top: 94px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--green);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  max-width: 1000px;
  margin-bottom: 18px;
  font-size: clamp(42px, 6vw, 84px);
  line-height: 1.02;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(28px, 3vw, 48px);
  line-height: 1.12;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: 19px;
  line-height: 1.22;
  letter-spacing: 0;
}

.lead {
  max-width: 920px;
  color: #43515d;
  font-size: clamp(18px, 1.7vw, 24px);
  font-weight: 560;
}

main {
  padding: 0 clamp(18px, 4vw, 58px) 64px;
}

.section {
  max-width: 1420px;
  margin: 0 auto;
  padding: 58px 0 0;
}

.section-heading {
  max-width: 960px;
  margin-bottom: 26px;
}

.flow {
  display: grid;
  gap: 18px;
}

.node {
  position: relative;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.node::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 7px;
  border-radius: 8px 0 0 8px;
  background: var(--green);
}

.node.compute::before {
  background: var(--blue);
}

.node.systems::before {
  background: var(--amber);
}

.node.demand::before {
  background: var(--violet);
}

.node p,
.layer-card p,
.signal-list p,
.source-layout p {
  margin-bottom: 0;
  color: var(--muted);
}

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

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

.tag {
  display: inline-flex;
  margin-bottom: 10px;
  padding: 4px 8px;
  border-radius: 5px;
  background: var(--soft-green);
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
}

.arrow {
  justify-self: center;
  width: min(520px, 100%);
  padding: 9px 16px;
  border: 1px dashed #a9b8b1;
  border-radius: 999px;
  color: #3f4d58;
  text-align: center;
  font-size: 14px;
  font-weight: 850;
  background: rgba(255, 255, 255, 0.64);
}

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

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

.layer-card {
  min-height: 250px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.layer-card span {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  margin-bottom: 16px;
  border-radius: 50%;
  background: var(--soft-blue);
  color: var(--blue);
  font-weight: 950;
}

.signal-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 18px;
  align-items: start;
}

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

.signal-list article,
.thesis-box,
.company-grid div,
.source-layout {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.signal-list article {
  padding: 20px;
}

.thesis-box {
  position: sticky;
  top: 82px;
  padding: 22px;
  border-left: 7px solid var(--red);
  background: #fffdfb;
}

.thesis-box p {
  margin-bottom: 0;
  color: #4d5964;
  font-size: 17px;
  font-weight: 620;
}

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

.company-grid div {
  display: grid;
  gap: 6px;
  min-height: 112px;
  padding: 17px;
}

.company-grid strong {
  color: #17202a;
  font-size: 17px;
}

.company-grid span {
  color: var(--muted);
  font-size: 14px;
}

.source-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
  gap: 22px;
  padding: 18px;
  align-items: start;
}

.source-layout img {
  width: 100%;
  border-radius: 6px;
  border: 1px solid var(--line);
}

.source-layout div {
  padding: 8px 8px 0;
}

@media (max-width: 980px) {
  .hero {
    min-height: auto;
  }

  .hero-inner {
    margin-top: 42px;
  }

  .topbar {
    justify-content: flex-start;
    overflow-x: auto;
  }

  .split,
  .layer-grid,
  .signal-list,
  .company-grid,
  .signal-layout,
  .source-layout {
    grid-template-columns: 1fr;
  }

  .layer-card {
    min-height: auto;
  }

  .thesis-box {
    position: static;
  }
}

@media (max-width: 560px) {
  .hero {
    padding-inline: 18px;
  }

  main {
    padding-inline: 14px;
  }

  h1 {
    font-size: 38px;
  }

  .node,
  .layer-card,
  .signal-list article,
  .thesis-box {
    padding: 18px;
  }
}
